package aiku.numericalcontroloa.Model.Entity.FinanceManagement;

import aiku.numericalcontroloa.Model.Entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 收支明细类
 * @Author 黄广庭
 * @Date 2024/5/7 11:48
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "income_expenditure_detail")
public class IncomeExpenditureDetail extends BaseEntity implements Serializable {
    /**
     * 账号id
     */
    @TableField(value = "account_id")
    private String accountId;

    /**
     * 付款、收款、报销id
     */
    @TableField(value = "expense_id")
    private String expenseId;

    /**
     * 交易说明
     */
    @TableField(value = "trade_comment")
    private String tradeComment;

    /**
     * 明细类型（0付款支出，1报销支出，2收款收入）
     */
    @TableField(value = "detail_type")
    private Integer detailType;

    /**
     * 余额
     */
    @TableField(value = "balance")
    private BigDecimal balance;

    /**
     * 交易时间
     */
    @TableField(value = "trading_hours")
    private Date tradingHours;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}
